<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;" />
<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>
<link href="/dqchat/Public/css/myaccount/style.css" type="text/css" rel="stylesheet"></link>
<script></script></head>
<body>
<div id="box">

<style>.active{background-image:url(/dqchat/Public/img/myaccount_line.jpg)}</style>
<script>
$(function(){	
	<?php  if($_GET['menu']){ $menu=$_GET['menu']; }else{ $menu=0; } ?>

	$('.header_menu li').eq(<?php echo $menu;?>).addClass('active');
    $('.header_menu li').click(function(){	

		$('.header_menu li').removeClass('active');

		$(this).addClass('active');	

	})
    $('.header_menu li').hover(
	function(){
	  $(this).addClass('active');
	  
	},function(){
	$(this).removeClass('active');	
	
	});

	//$('.header_menu li').mouseout(function(){
	//$(this).removeClass('active'); 
	//})

   
   
   
   
})
</script>


<div id="box">
<div class="header_menu">
    <ul class="children">
        <li><a href="<?php echo U('index?menu=0');?>">我的财富</a></li>
        <li><a href="<?php echo U('receivedgift?menu=1');?>">收到礼物</a></li>
        <li><a href="<?php echo U('sendgift?menu=2');?>">送出礼物</a></li>
    </ul>
</div>

<div class="regift_box1">
<table class="regift_menu" cellpadding=0 cellspacing=0>
<tr><td class="regift_gfname">礼物名称</td><td class="regift_number">数量</td><td class="regift_gfname">收礼人昵称</td><td class="regift_ID">收礼人ID</td><td class="regift_time">赠送时间</td></tr>
<?php if(empty($data)): ?><tr height='33'><td colspan=5>无记录</td></tr><?php endif; ?>

<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr height='33'><td ><?php echo ($vo["cgiftname"]); ?></td><td><?php echo ($vo["ncount"]); ?></td><td title="<?php echo ($vo["calias"]); ?>"><?php echo cut_str($vo['calias'],5);?></td><td><?php echo ($vo["nbuddyid"]); ?></td><td title="<?php echo date("Y-m-d h:i:s", strtotime($vo['dtime']));?>"><?php echo cut_str(date("Y-m-d h:i:s", strtotime($vo['dtime'])),5);?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>


</table>
<?php echo ($list); ?>
<!-- <div class="regift_menu2">
<ul>
<li>跳转</li>
<li><input type="text"></li>
<li>页</li>
<li class="regift_page">首页</li>
<li>上一页</li>
<li>下一页</li>
<li>末页</li>
</ul>
</div> -->

</div>
</div>
</body>
</html>